﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;

using Data = SoTaiChinh.Library.Data;
using Entity = SoTaiChinh.Library.Entity;

namespace SoTaiChinh.Library.Business
{
    public class Banner
    {
        public Banner() { }
        Data.Banner banner = new Data.Banner();

        //Thêm banner
        public bool Insert(Entity.Banner entity)
        {
            return banner.Insert(entity);
        }
        //Load tất cả danh mục
        public DataTable Select()
        {
            return banner.Select();
        }        

        //Load danh muc theo Id
        public DataTable SelectPrimaryKey(Entity.Banner entity)
        {
            return banner.SelectPrimaryKey(entity);
        }

        //Load danh muc theo vị trí banner
        public DataTable SelectByViTriBanner(Entity.Banner entity)
        {
            return banner.SelectByViTriBanner(entity);
        }

        //Cập nhật danh mục
        public bool Update(Entity.Banner entity)
        {
            return banner.Update(entity);
        }

        //Xóa danh mục
        public bool Delete(Entity.Banner entity)
        {
            return banner.Delete(entity);
        }
    }
}
